Skip to content

Resolve more changed after checked errors #31208

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 24, 2025

Conversation

crisbeto
Copy link
Member

Resolves the remaining "changed after checked" errors that were masked by exhaustive checks being turned off in tests.

@crisbeto crisbeto requested a review from a team as a code owner May 23, 2025 11:19
@crisbeto crisbeto added the target: rc This PR is targeted for the next release-candidate label May 23, 2025
@crisbeto crisbeto requested review from adolgachev and mmalerba and removed request for a team May 23, 2025 11:19
@crisbeto crisbeto added the merge: preserve commits When the PR is merged, a rebase and merge should be performed label May 23, 2025
@crisbeto crisbeto force-pushed the final-exhaustive-checks branch from ba80e46 to 3b74398 Compare May 23, 2025 11:25
crisbeto added 4 commits May 24, 2025 08:51
Turns the `_activeIndex` of the key manager into a signal internally to help resolve "changed after checked" errors in some components.
Resolves a "changed after checked" error in the list due to the disabled state of the item being dependent on the state of the list.
Removes the opt out of exhaustive checks from the menu tests. The issue was only in one test that wasn't set up correctly.
Resolves several "changed after checked" errors in the stepper by converting internal state to signals.
@crisbeto crisbeto force-pushed the final-exhaustive-checks branch from 3b74398 to 3fa15de Compare May 24, 2025 07:35
Updates more internal state of the CDK stepper to be signal-based in order to avoid inconsistencies.
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label May 24, 2025
@crisbeto crisbeto merged commit b775bd4 into angular:main May 24, 2025
28 checks passed
@crisbeto
Copy link
Member Author

The changes were merged into the following branches: main, 20.0.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: cdk/a11y area: cdk/stepper area: material/list area: material/menu area: material/stepper merge: preserve commits When the PR is merged, a rebase and merge should be performed target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants